package engine.newUi
{
	import engine.ui.lite.BaseUI;
	
	import flash.display.MovieClip;
	
	import newx.com.control.button.NxButton;
	import newx.com.control.group.NxViewGroup;
	import newx.com.control.text.NxLabel;
	import newx.com.control.text.NxText;

	/**
	 * 查看邮件界面 
	 * @author liuel
	 * 
	 */	
	public class SeeMailUI extends BaseUI
	{
		private static var _self:SeeMailUI;
		
		public var bgFrame:MovieClip;
		
		public var labAddresseeTip:NxLabel;
		public var labAddressee:NxLabel;
		public var bgAddressee:MovieClip;
		
		public var labSenderTip:NxLabel;
		public var labSender:NxLabel;
		public var bgSender:MovieClip;
		
		public var labTimeTip:NxLabel;
		public var labTime:NxLabel;
		public var bgTime:MovieClip;
		
		public var labTitleTip:NxLabel;
		public var labTitle:NxLabel;
		public var bgTitle:MovieClip;
		
		public var labContentTip:NxLabel;
		public var txtContent:NxText;
		public var bgContent:MovieClip;
		
		public var labAccessoriesTip:NxLabel;
		
		public var btnGet:NxButton;
		public var btnClose:NxButton;
		public var btnRevert:NxButton;
		
		public var gridGroup:NxViewGroup;
		public static function getInstance():SeeMailUI
		{
			if(_self == null)
			{
				_self	=	new SeeMailUI();
			}
			return _self;
		}
		public function SeeMailUI(popupUI:Boolean=true)
		{
			super(popupUI);
		}
		override public function Init() : void
		{
			SeeMailLogic.getInstance().Init();
		}
		override protected function	BeforeShow():void
		{
			SeeMailLogic.getInstance().BeforeShow();
		}
		override protected function	AfterHide():void
		{
			SeeMailLogic.getInstance().AfterHide();
		}
	}
}